<div *ngIf="messageService.messages.length">

  <h2>消息列表</h2>

  <button class = "clearButton" (click)="messageService.clearnMessage()" >清除</button>

  <div *ngFor="let message of messageService.messages">{{message}}</div>

</div>
